The online racing simulator
Searching in All forums
(358 results)
Flame CZE
S3 licensed
Moderator
You can use the following InSim packets:

A car hitting a wall: IS_HLV

inSim.connect({
// ...other connection options
Flags: InSimFlags.ISF_HLV // enable receiving IS_HLV packets
});

inSim.on(PacketType.ISP_HLV, packet => {
console.log(packet.HLVC === HLVCViolation.WALL); // wall hit
})

Car to car contacts: IS_CON

inSim.connect({
// ...other connection options
Flags: InSimFlags.ISF_CON // enable receiving IS_CON packets
});

inSim.on(PacketType.ISP_CON, packet => {
console.log(packet.A.Speed); // speed of car A
console.log(packet.B.X); // X position of car B
})

Layout object collisions: IS_OBH

inSim.connect({
// ...other connection options
Flags: InSimFlags.ISF_OBH // enable receiving IS_OBH packets
});

inSim.on(PacketType.ISP_OBH, packet => {
console.log(packet.Index); // object index
})

Flame CZE
S3 licensed
Moderator
Quote from TheStigUSA :Today, I modeled up a little battery meter and implemented it into the dash. I tried to calibrate it as well as possible, it's reasonably accurate. I think it looks pretty good!

How does it work?
Flame CZE
S3 licensed
Moderator
Can you please upload the images as attachments instead of using a 3rd party service (Imgur)? Then they will be stored here forever and won't be removed if the Imgur goes down.
Flame CZE
S3 licensed
Moderator
The new steering wheel option works well for my MOZA R3 wheel, I'm getting the bump stops now. Thanks for the quick fix Smile
Flame CZE
S3 licensed
Moderator
Quote from cuni :I know it should be plug'n play but as way to debug quickly...

I tried this and it didn't help - it still shows up as a joystick (first person controller in LFS).

This is the output from USBTreeView:

++++++++++++++ HID Information +++++++++++++++
Manufacturer : Gudsen
Product : R3 Racing Wheel and Pedals
Serial Number : 2A001D001151333033333434
UsagePage : 0x01 (Generic Desktop Controls)
Usage : 0x04 (Joystick)

Flame CZE
S3 licensed
Moderator
Quote from Scawen :Anyway, I've thought of a possible interface, to allow the user to override the reported device type, see attachment.

What if the "First person controller" text itself became a clickable button?
Flame CZE
S3 licensed
Moderator
I unplugged the G27 so only the MOZA R3 is plugged in, but still I don't get any bump stops.
Flame CZE
S3 licensed
Moderator
Okay, then something must be wrongly configured on my end and it's probably not a bug. Thanks, I will have another look. I have connected both my G27 and the Moza right now, maybe that could cause the issue?
Flame CZE
S3 licensed
Moderator
When I set the wheel rotation manually in Moza Pit House software, it works perfectly as you describe. But I want LFS to automatically set the rotation for each car so I don't have to jump into MPH and adjust the rotation manually every time I change the car.

The wheel turn compensation set to 1.00 (max) makes sure the physical wheel turn always matches the in-car steering wheel, provided that the max is set to at the actual max angle or more.

Here's an exaplantion from Scawen. Point 1) applies in my case:
Quote from Scawen :It actually isn't very complicated. Wheel turn compensation (which is recommended to be set to max) does two different things depending on if the game controller wheel turns more or less than the in-game car wheel.

1) Game controller wheel can turn more than the simulated car steering wheel:

Perfect match is possible.
Game controller wheel stops turning (a 'stop force' is applied) when simulated car steering wheel reaches limits.

2) Game controller wheel can not turn as much as the simulated car steering wheel:

Perfect match is not possible.
Non-linear approach is implemented.
Steering wheel turn amount matches in the middle, but simulated car wheel turns more as you increase the steering angle.

NOTE: This relies on the "Wheel turn" setting in Options - Controls matching your controller wheel turn degrees. E.g. if your game controller turns 900 degrees, then "Wheel turn" must be set to 900.

This worked well with my G27 - I could feel a bump stop when I reached the maximum lock angle of the given car.

For demonstration, here's a comparison of me turning the G27 wheel past its full lock and then the same with the MOZA R3. Pay attention to the FFB graph at the bottom right:


Last edited by Flame CZE, .
No FFB soft stop with a MOZA wheel base
Flame CZE
S3 licensed
Moderator
I've upgraded from a Logitech G27 to a MOZA R3 wheel base and I found that I don't get the FFB stop in LFS anymore.

My settings are still the same as recommended:
- Wheel turn set to 1080° in the wheel software as well as in LFS
- Wheel turn compensation: 1.00

When I turn the wheel past the car's natural wheel rotation, there's no FFB stop at all.

I don't know if it's a bug in LFS or somewhere in the MOZA wheel's software.
Last edited by Flame CZE, .
Button scopes
Flame CZE
S3 licensed
Moderator
While developing an InSim app for myself, I needed to show personalised buttons to each connection and human player on track. To abstract away having to assign the button UCIDs manually, I've introduced scopes in the React Node InSim library.

Here's a demo video with two LFS users:
- the "React NodeInSim" button is the same for all connections (UCID 255)
- the username buttons are different for each connection
- the player name buttons are different for each human player on track



Example code:

export function ScopesExample() {
return (
<GlobalScopeProvider>
<Button top={0} left={80} height={5} width={40}>
React Node InSim
</Button>
</GlobalScopeProvider>
<ConnectionScopeProvider>
<UserNameButton />
<HumanPlayerScopeProvider>
<HumanPlayerNameButton />
</HumanPlayerScopeProvider>
</ConnectionScopeProvider>
);
}

Demo app source code
Flame CZE
S3 licensed
Moderator
You can use data/script/[car name].lfs files to add /ff commands there (e.g. XRT.lfs). For mods the file must be named after the SkinID - C2EBCF.lfs for example.
Flame CZE
S3 licensed
Moderator
He's like me
Flame CZE
S3 licensed
Moderator
Thanks for the explanation, that makes sense now.

I was going to add the number of triangles and points for each LFS car in the car infobox in LFS Manual (see the XF GTI manual page), but it's not as straightforward as it looked Big grin
Flame CZE
S3 licensed
Moderator
In the modeller, when I select LOD3, the total number of output tris and points is different from the actual number of tris or points. You can see it in the screenshots where I select all tris and points. I think it should say 26 tris / 20 pts, but it says 36 tris / 46 pts. I don't know how those numbers are calculated.
Flame CZE
S3 licensed
Moderator
There seems to be a bug when someone withdraws from an event, the forum post says there's total of 1 entry even though there are 42 entries.

https://www.lfs.net/forum/post/2116397#post2116397
Flame CZE
S3 licensed
Moderator
- modelled inner window frames
- added more placeholder dashboard clocks


Flame CZE
S3 licensed
Moderator
You get an additional unlock available every Friday, provided you do not already have 2 unlocks available.

If you need an unlock urgently, write an e-mail to the developers
https://www.lfs.net/mailus

Why did you have to unlock LFS so many times since Friday?
Flame CZE
S3 licensed
Moderator
Can you share a link to the NFS MW mod?
Flame CZE
S3 licensed
Moderator
Also, instead of modelling each letter in 3D, you can make it a transparent texture over the coloured tree model.
Flame CZE
S3 licensed
Moderator
You seem to be creating triangles manually for the edge of the tree - instead you could use the extrude function and it would create the triangles automatically.

https://en.lfsmanual.net/wiki/LFS_Editor/Guides/Extrude_and_Lathe_Functions
Flame CZE
S3 licensed
Moderator
I did a quick test and it shows correctly when there is a latin character at the beginning of the host name:



If it's just Korean characters, it is wrong:

Flame CZE
S3 licensed
Moderator
Make sure you are on track with a car and have an in car or custom view selected. Then you should also see "Décalage Z" in there.
Flame CZE
S3 licensed
Moderator
You can adjust the view height in Options - View - Z offset.
Flame CZE
S3 licensed
Moderator
Quote from lucienz :I dropped lfs.
I don't see anything there.
Too low.
And I couldn't find the settings

What were you trying to find?
FGED GREDG RDFGDR GSFDG